package com.bwie.controller;
import com.bwie.domain.Dict;
import com.bwie.service.DictService;
import com.bwie.service.Impl.DictServiceImpl;
import com.bwie.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* 字典参数(tb_dict)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/dict")
public class DictController {
/**
* 服务对象
*/
    @Autowired
    private DictService dictService;

    @ApiOperation("查询字典参数")
    @PostMapping("selectDictByPid/{parentId}")
    public R selectDictByPid(@PathVariable("parentId") Integer parentId){
        return dictService.selectDictByPid(parentId);
    }



}
